
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import custom from './asset/lib/custom.js';
Vue.prototype.custom=custom;
import http from './asset/lib/http.js';
Vue.prototype.http=http;
import api from './asset/lib/api.js';
Vue.prototype.api=api;
import md5 from "./asset/lib/md5.js"
Vue.prototype.md5=md5;
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.checkLogin = function(code){
	
    let token  = uni.getStorageSync('x-api-token');
	
    let res=token&&token!==null&&token!=''&&token!=undefined?true:false;
	
	if(!res){
		uni.reLaunch({
		    url: '/pages/login/login'
		});
	}
	return res;
}

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif